<?php
require_once 'application/library/helper/configHelper.php';
require_once 'application/library/helper/headerHelper.php';
/** 
 * cookieHelper
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */
class cookieHelper{
    
    /**
     * 设置饼干
     * getCookie
     * @param string $cookieId
     * @return 
     */
    public static function getCookie($cookieId){
        $val = !empty($_COOKIE[$cookieId]) ? $_COOKIE[$cookieId] : null;
        return $val;
    }

    /**
     * 取得饼干
     * setCookie
     * @param string $cookieId
     * @param string $value
     * @return 
     */
    public static function setCookie($cookieId,$value,$time=null){
        setcookie($cookieId, $value, time()+ 2678400,"/");
    }
}
